<%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%>
<%@ page import="itsos.service.DisplayRepositoryTree"%>
<%@ page import="org.tmatesoft.svn.core.io.SVNRepository"%>
<%@ page import="org.tmatesoft.svn.core.auth.ISVNAuthenticationManager"%>
<%@ page import="org.tmatesoft.svn.core.wc.SVNWCUtil"%>
<%@ page import="java.util.*"%>
<%@ page import="org.tmatesoft.svn.core.SVNDirEntry"%>
<%@ page import="org.tmatesoft.svn.core.SVNNodeKind"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<%
	String url = "http://svn.svnkit.com/repos/svnkit";
	String name = "anymous";
	String password = "anymous";
	SVNRepository repository = null;
	Collection collect = null;
	Iterator iterater = null;
	DisplayRepositoryTree.setupLibrary();
	repository = DisplayRepositoryTree.UrlReg(repository, url);
	ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager(name, password);
	repository.setAuthenticationManager(authManager);
	DisplayRepositoryTree.InspectUrl(repository, url);
	collect = DisplayRepositoryTree.listEntry(repository, "");
	iterater = collect.iterator();
	while (iterater.hasNext()) {
		SVNDirEntry entry = (SVNDirEntry) iterater.next();
		if (entry.getKind() == SVNNodeKind.DIR) {
%>

			<%=entry.getName()%><br/>
<%
		}
	}
//	DisplayRepositoryTree.PrintRevision(repository);
%>

</body>
</html>
